package com.gifdialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;

import com.ant.liao.GifView;

/**
 * Created by brooks on 16/11/21.
 */
public class GifDialog extends Dialog {
    private Context context;
    private static GifView gifView;
    private TextView tv;
    String conent;

    public GifDialog(Context context, int theme, String content) {
        super(context, theme);
        this.context = context;
        this.conent = content;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        this.setContentView(R.layout.dialog_for_gif_loading);

        gifView = (GifView) findViewById(R.id.id_for_gif_view);
        gifView.setGifImageType(GifView.GifImageType.WAIT_FINISH);
        gifView.setGifImage(R.raw.kitty);
    }


}
